package com.foreknow.demo2;

public class UseCompute {
    public int useCom(Compute com,int n,int m){
       return com.computer(n,m);
    }

    public static void main(String[] args) {
        UseCompute useCompute = new UseCompute();
        Jia a = new Jia();
        Jian b = new Jian();
        Cheng c = new Cheng();
        Chu d = new Chu();

        int sum = useCompute.useCom(a,1,2);
        System.out.println(sum);

        Compute[] computes = new Compute[5];
        computes[0] = new Jia();
        computes[1] = new Jian();

    }
}
